<include file="template:style"/>
<form role="form" id="searchForm" action="{:U('Onlineorder/index')}" method='post' class="form-horizontal">
    <div class="form-group">
        <!--<if condition="$account.role == 1">-->
            <!--<include file="template:select" results="params" name="companyid" list="companyList" label="分公司" attr=''/>-->
        <!--</if>-->
        <!--<include file="template:search" results="params" name="belongagen" label="上级代理" attr='data-rule="length(~20)" maxlength="20"'/>-->
        <include file="template:search" results="params" name="account" label="账号" attr='data-rule="length(~20)" maxlength="20"'/>
		<include file="template:search" results="params" name="sn" label="订单号" attr='data-rule="length(~20)" maxlength="20"'/>
		<include file="template:select" results="params" name="status" label="状态" list="orderStatus" attr='data-rule="length(~10)" maxlength="10"'/>
		<include file="template:range" results="params" name="total" label="总金额" attr='data-rule="length(~20)" maxlength="20"'/>
        <!--<include file="template:address" results="params" name="regionid" label="地区" attr='data-rule="length(~10)" maxlength="10"'/>-->
		<!--<include file="template:search" results="params" name="name" label="名字" attr='data-rule="length(~20)" maxlength="20"'/>-->
		<!--<include file="template:search" results="params" name="phone" label="联系" attr='data-rule="length(~20)" maxlength="20"'/>-->
		<!--<include file="template:search" results="params" name="logistics" label="物流单号" attr='data-rule="length(~255)" maxlength="255"'/>-->
        <include file="template:time" results="params" name="createtimeStart" label="创建时间开始" attr='data-rule="length(~19)" maxlength="19"'/>
        <include file="template:time" results="params" name="createtimeEnd" label="创建时间结束" attr='data-rule="length(~19)" maxlength="19"'/>
        <!--<include file="template:time" results="params" name="updatetimeStart" label="更新时间开始" attr='data-rule="length(~19)" maxlength="19"'/>-->
        <!--<include file="template:time" results="params" name="updatetimeEnd" label="更新时间结束" attr='data-rule="length(~19)" maxlength="19"'/>-->
		<include file="template:select" results="params" name="pageSize" list="page" label="每页条数" />
        <div class="col-xs-12">
			<div class="col-xs-4 col-sm-3 col-md-2 col-lg-1 pull-left">
                <div class="row">
                </div>
            </div>
			<div class="col-xs-4 col-sm-3 col-md-2 col-lg-1">
                <!--<div class="row">-->
					<!--<span>总金额：{$sum.totalsum}</span>-->
				<!--</div>-->
            </div>
            <div class="col-xs-4 col-sm-3 col-md-2 col-lg-1 pull-right">
                <div class="row">
                    <include file="template:searchBtn"/>
                    <include file="template:reloadBtn"/>
                </div>
            </div>
        </div>
    </div>
</form>
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th nowrap="nowrap">ID</th>
            <th nowrap="nowrap">会员账号</th>
            <th nowrap="nowrap">会员姓名</th>
            <th nowrap="nowrap">单号</th>
            <th nowrap="nowrap">总金额</th>
            <th nowrap="nowrap">状态</th>
            <th nowrap="nowrap">创建时间</th>
            <!--<th nowrap="nowrap">更新时间</th>-->
            <th nowrap="nowrap">操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
            <tr>
				<td nowrap="nowrap">{$vo.id}</td>
                <td nowrap="nowrap">{$vo.account}</td>
                <td nowrap="nowrap">{$vo.realname}</td>
                <td nowrap="nowrap">{$vo.no}</td>
                <td nowrap="nowrap">{$vo.total}</td>
				<td nowrap="nowrap">{$vo.status|getDropdownList="orderStatus",###}</td>
                <td nowrap="nowrap">{$vo.createtime}</td>
                <!--<td nowrap="nowrap">{$vo.updatetime}</td>-->
                <td nowrap="nowrap">
                    <!--详情-->
                    <i class="fa fa-file-text-o qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="查看详细" onclick="modal('{:U(\'Onlineorder/info\', array(\'id\'=>$vo[\'id\']))}', '详细信息','90%','700px')"></i>
                    <!--收货地址-->
                    <i class="fa fa-share-alt qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="收货信息" onclick="modal('{:U(\'Onlineorder/receiptedit\', array(\'id\'=>$vo[\'id\']))}', '收货信息','500px','600px')"></i>
                    <!--发货-->
                    <if condition="$vo.status eq 2">
                        <i class="fa fa-send-o qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="发货" onclick="modal('{:U(\'Onlineorder/send\', array(\'id\'=>$vo[\'id\']))}','发货')"></i>
                    </if>
                    <if condition="($vo.status == 3) || ($vo.status == 4)">
                        <!--物流信息-->
                        <i class="fa fa-truck qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="物流信息" onclick="modal('{:U(\'Onlineorder/logistics\', array(\'id\'=>$vo[\'id\']))}', '物流信息','650px','400px')"></i>
                    </if>
                    <i class="fa fa-trash-o qg-tooltip qg-op-btn" data-toggle="tooltip" data-placement="top" title="删除" onclick="confirmUpdate('{:U(\'Onlineorder/delete\')}','{$vo.id}','确定要删除吗？')"></i>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>
{$page}